package com.cy.springcloud.fallbacks;

import com.cy.springcloud.services.HelloService;
import org.springframework.stereotype.Component;

/**
 * @Description: 调用远程服务的hello接口失败时的回调类
 * @ClassName: HelloFallback
 * @Author: chenyu
 * @Date: 2025/1/7 15:08
 */
@Component
public class HelloFallback implements HelloService {

    @Override
    public String hello() {
        return "发生异常了，暂时采用本地逻辑......";
    }
}
